from common.Utils import ChatroomDriver
from tests import Logintest
from tests import ChatList
from tests import ChatDetails
from tests import ContactLIst
from tests import Infor

if __name__== "__main__":
    #登录界面测试
    Logintest.Login().LoginFailTest()
    Logintest.Login().LoginSucTest()
    #登录成功后调用聊天消息列表测试（登录状态下）
    ChatList.ChatList().ListTestByLogin()
    # ChatList.ChatList().ListTestByNotLogin()
    #聊天详情页测试
    ChatDetails.ChatDetails().DetailsTestByLogin()
    #联系人列表页测试
    ContactLIst.ContactList().ContactTestByLogin()
    #消息与发送页面测试
    Infor.Infor().InforTestByLogin()

    #执行浏览器的退出
    ChatroomDriver.driver.quit()


